#/usr/bin/env python
# -*- coding: utf8 -*-
# title       :
# description :
# author      :'ShenMeng'

import maya.cmds as cmds


class Checker():
    def __init__(self):
        self.data_dict = dict()

    def scan(self):
        self.dataDict = {}
        nodeList = cmds.ls(type='mesh')
        if nodeList:
            for node in nodeList:
                dataList = cmds.listHistory(node)
                dataList.remove(node)
                if dataList:
                    self.dataDict[node] = dataList
        return self.dataDict

    def solve(self):
        cmds.delete(all=1, ch=1)

    def select(self, obj):
        print '----------------'
        print obj
        cmds.select(obj)
